<script setup>
import {onMounted} from 'vue';
import {useRoute} from 'vue-router';

const route = useRoute();

onMounted(() => {
    console.log("route",route);
    // 接值：
    console.log("route.query.id",route.query.id);
})

</script>

<template>
    <h1>音乐详情</h1>
    <p>route.query.id ：{{route.query.id}}</p>
    <p>route.query.name ：{{route.query.name}}</p>
</template>

<style  scoped>
    
</style>
